﻿using System.Collections.Generic;
using ShopB2C.Entity;

namespace ShopB2C.Interfaces {
    /// <summary>
    /// 图片轮换
    /// </summary>
    public interface IImageRepeat {

        #region ImageRepeat

        /// <summary>
        /// 添加新的图片
        /// </summary>
        /// <param name="ire">ImageRepeatEntity</param>
        void ImageRepeatAppend(ImageRepeatEntity ire);
        /// <summary>
        /// 修改图片
        /// </summary>
        /// <param name="ire">ImageRepeatEntity</param>
        void ImageRepeatUpdate(ImageRepeatEntity ire);
        /// <summary>
        /// 删除图片
        /// </summary>
        /// <param name="irIds">图片 id 字符串，“,”分隔</param>
        void ImageRepeatDelete(string irIds);
        /// <summary>
        /// 获取指定 id 的图片
        /// </summary>
        /// <param name="irId">图片 id</param>
        /// <returns>ImageRepeatEntity</returns>
        ImageRepeatEntity GetImageRepeatById(int irId);
        /// <summary>
        /// 批量更新图片排序
        /// </summary>
        /// <param name="irIds">图片 id 集</param>
        /// <param name="sequences">排序集</param>
        void ImageRepeatBatchUpdateSequence(string irIds, string sequences);
        /// <summary>
        /// 获取图片列表
        /// </summary>
        /// <param name="irIds">图片 id 集</param>
        /// <returns>List</returns>
        List<ImageRepeatEntity> GetImageRepeatList(string irIds);

        #endregion

    }
}
